package com.springboot.dubbo.consumer.utils;

import com.alibaba.dubbo.config.annotation.Reference;
import com.springboot.dubbo.provider.api.service.UserService;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

/**
 * @Author: guodong
 * @Date: 2021/12/27 16:27
 * @Version: 1.0
 * @Description:
 */
@Component
public class BeanFactoryUtil {

    @Reference
    UserService userService;

    @Bean(name = "userService")
    public UserService getUserService() {
        return userService;
    }

}
